<?php

namespace Application\Controllers;


trait Controller
{
    public function success($info)
    {
        return $this->response->setJsonContent(['status' => 1, 'info' => $info]);
    }

    public function error($info)
    {
        return $this->response->setJsonContent(['status' => 0, 'info' => $info]);
    }
}